<?php 

/**
 * Joomla! 1.5 component retweet
 * @version 0.1
 * @author Chris Borkowski 
 * @package com_retweet
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 **/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


  
// uncomment to add custom css file for this view,
// save the css file to media/com_retweet/css/yourcss.css
//use media/com_retweet folder to store your css,js,images,...

	//$document =& JFactory::getDocument();
    //$document->addStyleSheet($this->baseurl.'/media/com_retweet/css/yourcss.css');

  ?>
<?php if ( $this->params->def( 'show_page_title', 1 ) ) : ?>
<h1 class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php echo $this->escape($this->params->get('page_title')); ?>
</h1>
<?php endif; ?>

<?php if( $this->params->get('show_body') && $this->item->body ):?>
	<h3>Body</h3>
	<?php echo $this->item->body; ?>
<?php endif; ?>


<?php if( $this->params->get('show_new_body') && $this->item->new_body ):?>
	<h3>New_body</h3>
	<?php echo $this->item->new_body; ?>
<?php endif; ?>


<?php if( $this->params->get('show_use_new_body') && $this->item->use_new_body ):?>
	<h3>Use_new_body</h3>
	<?php echo $this->item->use_new_body; ?>
<?php endif; ?>


<?php if( $this->params->get('show_twitter_profile') && $this->item->twitter_profile ):?>
	<h3>Twitter Profile</h3>
	<?php echo $this->item->twitter_profile; ?>
<?php endif; ?>


<?php if( $this->params->get('show_profile_override') && $this->item->profile_override ):?>
	<h3>Profile Override</h3>
	<?php echo $this->item->profile_override; ?>
<?php endif; ?>


<?php if( $this->params->get('show_use_profile_override') && $this->item->use_profile_override ):?>
	<h3>Use Profile Override ?</h3>
	<?php echo $this->item->use_profile_override; ?>
<?php endif; ?>


<?php if( $this->params->get('show_twitter_avatar') && $this->item->twitter_avatar ):?>
	<h3>Twitter Aatar</h3>
	<?php echo $this->item->twitter_avatar; ?>
<?php endif; ?>


<?php if( $this->params->get('show_avatar_override') && $this->item->avatar_override ):?>
	<h3>Avatar Override</h3>
	<?php echo $this->item->avatar_override; ?>
<?php endif; ?>


<?php if( $this->params->get('show_link_to_profile') && $this->item->link_to_profile ):?>
	<h3>Link to Profile ?</h3>
	<?php echo $this->item->link_to_profile; ?>
<?php endif; ?>


<?php if( $this->params->get('show_faux_profile_link') && $this->item->faux_profile_link ):?>
	<h3>Faux Profile link</h3>
	<?php echo $this->item->faux_profile_link; ?>
<?php endif; ?>


<?php if( $this->params->get('show_tinyurl') && $this->item->tinyurl ):?>
	<h3>Tinyurl</h3>
	<?php echo $this->item->tinyurl; ?>
<?php endif; ?>


<?php if( $this->params->get('show_tinyurl_service') && $this->item->tinyurl_service ):?>
	<h3>Tinyurl Service</h3>
	<?php echo $this->item->tinyurl_service; ?>
<?php endif; ?>


<?php if( $this->params->get('show_patform_source') && $this->item->patform_source ):?>
	<h3>Patform Source</h3>
	<?php echo $this->item->patform_source; ?>
<?php endif; ?>


<?php if( $this->params->get('show_override_source') && $this->item->override_source ):?>
	<h3>Override Platfor Source</h3>
	<?php echo $this->item->override_source; ?>
<?php endif; ?>


<?php if( $this->params->get('show_media_service') && $this->item->media_service ):?>
	<h3>Media Service</h3>
	<?php echo $this->item->media_service; ?>
<?php endif; ?>


<?php if( $this->params->get('show_photo') && $this->item->photo ):?>
	<h3>Photo</h3>
	<?php echo $this->item->photo; ?>
<?php endif; ?>


<?php if( $this->params->get('show_video') && $this->item->video ):?>
	<h3>Video</h3>
	<?php echo $this->item->video; ?>
<?php endif; ?>


<?php if( $this->params->get('show_audio') && $this->item->audio ):?>
	<h3>Audio</h3>
	<?php echo $this->item->audio; ?>
<?php endif; ?>


<?php if( $this->params->get('show_location') && $this->item->location ):?>
	<h3>Location</h3>
	<?php echo $this->item->location; ?>
<?php endif; ?>


<?php if( $this->params->get('show_tags') && $this->item->tags ):?>
	<h3>Tags</h3>
	<?php echo $this->item->tags; ?>
<?php endif; ?>


<?php if( $this->params->get('show_retweet') && $this->item->retweet ):?>
	<h3>Retweet ?</h3>
	<?php echo $this->item->retweet; ?>
<?php endif; ?>


<?php if( $this->params->get('show_retweet_to_profile') && $this->item->retweet_to_profile ):?>
	<h3>Retweet To Profile:</h3>
	<?php echo $this->item->retweet_to_profile; ?>
<?php endif; ?>


<?php if( $this->params->get('show_local_publish') && $this->item->local_publish ):?>
	<h3>Local Publish ?</h3>
	<?php echo $this->item->local_publish; ?>
<?php endif; ?>


<?php if( $this->params->get('show_publish_to_facebok') && $this->item->publish_to_facebok ):?>
	<h3>Publish To Facebok ?</h3>
	<?php echo $this->item->publish_to_facebok; ?>
<?php endif; ?>


<?php if( $this->params->get('show_share_service') && $this->item->share_service ):?>
	<h3>Share Service ?</h3>
	<?php echo $this->item->share_service; ?>
<?php endif; ?>


<?php if( $this->params->get('show_embed_code') && $this->item->embed_code ):?>
	<h3>Show Embed Code ?</h3>
	<?php echo $this->item->embed_code; ?>
<?php endif; ?>


<?php if( $this->params->get('show_email_to') && $this->item->email_to ):?>
	<h3>Email To:</h3>
	<?php echo $this->item->email_to; ?>
<?php endif; ?>


<?php if( $this->params->get('show_include_media') && $this->item->include_media ):?>
	<h3>Include Media ?</h3>
	<?php echo $this->item->include_media; ?>
<?php endif; ?>


<?php if( $this->params->get('show_mail_sent') && $this->item->mail_sent ):?>
	<h3>Mail Sent ?</h3>
	<?php echo $this->item->mail_sent; ?>
<?php endif; ?>


<?php if( $this->params->get('show_send_again') && $this->item->send_again ):?>
	<h3>Send Email Again ?</h3>
	<?php echo $this->item->send_again; ?>
<?php endif; ?>

<?php if (($this->params->get('show_author'))) : ?>
		<p class="small">
			<?php echo JText::_( 'Written by' ); ?>:<?php echo $this->item->created_by_alias; ?>
		</p>
<?php endif; ?>
		
<?php if ($this->params->get('show_create_date')) : ?>
		<p class="small">
		<?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')) ?>
		</p>
<?php endif; ?>

<?php if ( intval($this->item->modified) !=0 && $this->params->get('show_modify_date')) : ?>
	<p class="small">
	<?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
	</p>
<?php endif; ?>
		
<?php if ($this->params->get('show_hits')) : ?>
	<p class="small">
	<?php echo JText::_( 'Hits' ); ?>:<?php echo $this->item->hits; ?>
	</p>
<?php endif; ?>
